#! -*- coding: utf-8 -*-
"""
惠仁处方审核信息
"""

import time, datetime
from mongoengine import Document, StringField, IntField, BooleanField

class HuiRenAudit(Document):
    # _id = StringField(required=True, primary_key=True)
    pres_id = StringField()
    QueryResult = IntField()
    brief = StringField()
    result_data = StringField()
    outXML = StringField()
    pharmacist = StringField()

    obsoleted = BooleanField(default=False)
    created_at = IntField(default=int(time.time() * 1000))
    updated_at = IntField(default=int(time.time() * 1000))


    meta = {
        'collection': 'HuiRenAudit',    #指定collection的名字
        'ordering': ['-updated_at'],
        'indexes': [
            ('QueryResult')
        ]
    }
